function get_c2_data() {
    $.ajax({
        url: "/c2",
        success: function (data) {
            ec_center_option.series[0].data = data.data
            ec_center.setOption(ec_center_option)
        },
        error: function (xhr, type, errorThrown) {

        }
    })
}

get_c2_data()

setInterval(get_c2_data, 10000 * 10)